﻿using DeZhen.DataCollection.Model.Common;
using DeZhen.DataCollection.Model.DTO.DataSourceSettings;

namespace DeZhen.DataCollection.IService.DataSourceSetting
{
    public interface IDataSourceSettingsSerevice
    {
        Task<PageResult<DataSourceSettingsDTO>> GetListToPageAsync(QueryDataSourceSettings param);

        Task<DataSourceSettingsDTO> GetSettingsByIdAsync(long id);

        Task<List<DataSourceSettingsDropDownDTO>> GetDropDownListAsync();

        Task<bool> AddAsync(DataSourceSettingsAdd input);

        Task<bool> UpdateAsync(DataSourceSettingsEdit input);

        Task DeleteAsync(long id);

        Task<bool> TestConnectionAsync(DataSourceSettingsAdd input);
    }
}
